<?php
class PresentationDate extends Presentation {
    private $format;
    
    public function __construct($format) {
        $this->format = $format;
    }
    
    public function formatForForm($value) {
        return date($this->format, (int) $value);
    }
    
    public function formatForList($value) {
        return $this->formatForForm($value);
    }
    
    public function fixInput($current, $rawInput) {
        return $this->formatForForm($current);
    }
}